/**
 *  iBizSys 5.0 机器人生产代码（不要直接修改当前代码）
 *  http://www.ibizsys.net
 */
package com.sa.litetwo.srv.card.entity;


import java.io.Serializable;
import java.util.HashMap;
import java.util.ArrayList;

import javax.persistence.Column;

import java.sql.Timestamp;
import net.ibizsys.paas.data.IDataObject;
import net.ibizsys.paas.data.DataObject;
import net.ibizsys.paas.util.StringHelper;
import net.sf.json.JSONObject;
import net.ibizsys.paas.util.JSONObjectHelper;
import net.ibizsys.paas.xml.XmlNode;
import net.ibizsys.paas.service.ServiceGlobal;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * 实体[GG_GRDHONOR] 数据对象
 */
public class GG_GRDHONOR extends net.ibizsys.paas.entity.EntityBase implements Serializable {

   private static final long serialVersionUID = -1L;
   private static final Log log = LogFactory.getLog(GG_GRDHONOR.class); 
   /**
    *   实体属性标识[荣誉标识]
    */
   public final static String FIELD_GG_GRDHONORID = "GG_GRDHONORID";
   /**
    *   实体属性标识[奖项]
    */
   public final static String FIELD_GG_GRDHONORNAME = "GG_GRDHONORNAME";
   /**
    *   实体属性标识[建立时间]
    */
   public final static String FIELD_CREATEDATE = "CREATEDATE";
   /**
    *   实体属性标识[建立人]
    */
   public final static String FIELD_CREATEMAN = "CREATEMAN";
   /**
    *   实体属性标识[更新时间]
    */
   public final static String FIELD_UPDATEDATE = "UPDATEDATE";
   /**
    *   实体属性标识[更新人]
    */
   public final static String FIELD_UPDATEMAN = "UPDATEMAN";
   /**
    *   实体属性标识[人员]
    */
   public final static String FIELD_CARDID = "CARDID";
   /**
    *   实体属性标识[时间]
    */
   public final static String FIELD_KSSJ = "KSSJ";
   /**
    *   实体属性标识[级别]
    */
   public final static String FIELD_JB = "JB";

   private final static int INDEX_GG_GRDHONORID = 0;
   private final static int INDEX_GG_GRDHONORNAME = 1;
   private final static int INDEX_CREATEDATE = 2;
   private final static int INDEX_CREATEMAN = 3;
   private final static int INDEX_UPDATEDATE = 4;
   private final static int INDEX_UPDATEMAN = 5;
   private final static int INDEX_CARDID = 6;
   private final static int INDEX_KSSJ = 7;
   private final static int INDEX_JB = 8;

   private final static HashMap<String, Integer> fieldIndexMap = new HashMap<String, Integer>();
   static
   {
       fieldIndexMap.put( FIELD_GG_GRDHONORID, INDEX_GG_GRDHONORID);
       fieldIndexMap.put( FIELD_GG_GRDHONORNAME, INDEX_GG_GRDHONORNAME);
       fieldIndexMap.put( FIELD_CREATEDATE, INDEX_CREATEDATE);
       fieldIndexMap.put( FIELD_CREATEMAN, INDEX_CREATEMAN);
       fieldIndexMap.put( FIELD_UPDATEDATE, INDEX_UPDATEDATE);
       fieldIndexMap.put( FIELD_UPDATEMAN, INDEX_UPDATEMAN);
       fieldIndexMap.put( FIELD_CARDID, INDEX_CARDID);
       fieldIndexMap.put( FIELD_KSSJ, INDEX_KSSJ);
       fieldIndexMap.put( FIELD_JB, INDEX_JB);
   }
   
   private GG_GRDHONOR proxyGG_GRDHONOR = null;

   public GG_GRDHONOR(){
        super();
   }
   private boolean gg_grdhonoridDirtyFlag = false;
   private boolean gg_grdhonornameDirtyFlag = false;
   private boolean createdateDirtyFlag = false;
   private boolean createmanDirtyFlag = false;
   private boolean updatedateDirtyFlag = false;
   private boolean updatemanDirtyFlag = false;
   private boolean cardidDirtyFlag = false;
   private boolean kssjDirtyFlag = false;
   private boolean jbDirtyFlag = false;

    @Column(name="gg_grdhonorid")
    private String gg_grdhonorid;
    @Column(name="gg_grdhonorname")
    private String gg_grdhonorname;
    @Column(name="createdate")
    private Timestamp createdate;
    @Column(name="createman")
    private String createman;
    @Column(name="updatedate")
    private Timestamp updatedate;
    @Column(name="updateman")
    private String updateman;
    @Column(name="cardid")
    private String cardid;
    @Column(name="kssj")
    private Timestamp kssj;
    @Column(name="jb")
    private String jb;

   
    /**
     *  设置属性值[荣誉标识]
     *  @param gg_grdhonorid
     */
    public void setGG_GRDHONORId(String gg_grdhonorid){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setGG_GRDHONORId(gg_grdhonorid);
    		return;
    	}
        if(gg_grdhonorid!=null)
        {
        	gg_grdhonorid = StringHelper.trimRight(gg_grdhonorid);
        	if(gg_grdhonorid.length()==0){
        		gg_grdhonorid = null;
        	}
        }
        this.gg_grdhonorid =  gg_grdhonorid; 
        this.gg_grdhonoridDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[荣誉标识]
     */
    public String getGG_GRDHONORId(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getGG_GRDHONORId();
    	}
        return this.gg_grdhonorid;
    }

    /**
     *  获取属性值[荣誉标识]是否修改
     */
    public boolean isGG_GRDHONORIdDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isGG_GRDHONORIdDirty();
    	}
        return this.gg_grdhonoridDirtyFlag;
    }

    /**
     *  重置属性值[荣誉标识]
     */
    public void resetGG_GRDHONORId(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetGG_GRDHONORId();
    		 return;
    	}
    	
        this.gg_grdhonoridDirtyFlag = false;
        this.gg_grdhonorid = null;
    }
    /**
     *  设置属性值[奖项]
     *  @param gg_grdhonorname
     */
    public void setGG_GRDHONORName(String gg_grdhonorname){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setGG_GRDHONORName(gg_grdhonorname);
    		return;
    	}
        if(gg_grdhonorname!=null)
        {
        	gg_grdhonorname = StringHelper.trimRight(gg_grdhonorname);
        	if(gg_grdhonorname.length()==0){
        		gg_grdhonorname = null;
        	}
        }
        this.gg_grdhonorname =  gg_grdhonorname; 
        this.gg_grdhonornameDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[奖项]
     */
    public String getGG_GRDHONORName(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getGG_GRDHONORName();
    	}
        return this.gg_grdhonorname;
    }

    /**
     *  获取属性值[奖项]是否修改
     */
    public boolean isGG_GRDHONORNameDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isGG_GRDHONORNameDirty();
    	}
        return this.gg_grdhonornameDirtyFlag;
    }

    /**
     *  重置属性值[奖项]
     */
    public void resetGG_GRDHONORName(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetGG_GRDHONORName();
    		 return;
    	}
    	
        this.gg_grdhonornameDirtyFlag = false;
        this.gg_grdhonorname = null;
    }
    /**
     *  设置属性值[建立时间]
     *  @param createdate
     */
    public void setCreateDate(Timestamp createdate){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setCreateDate(createdate);
    		return;
    	}
        this.createdate =  createdate; 
        this.createdateDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[建立时间]
     */
    public Timestamp getCreateDate(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getCreateDate();
    	}
        return this.createdate;
    }

    /**
     *  获取属性值[建立时间]是否修改
     */
    public boolean isCreateDateDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isCreateDateDirty();
    	}
        return this.createdateDirtyFlag;
    }

    /**
     *  重置属性值[建立时间]
     */
    public void resetCreateDate(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetCreateDate();
    		 return;
    	}
    	
        this.createdateDirtyFlag = false;
        this.createdate = null;
    }
    /**
     *  设置属性值[建立人]代码表：com.sa.litetwo.srv.codelist.SysOperatorCodeListModel
     *  @param createman
     */
    public void setCreateMan(String createman){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setCreateMan(createman);
    		return;
    	}
        if(createman!=null)
        {
        	createman = StringHelper.trimRight(createman);
        	if(createman.length()==0){
        		createman = null;
        	}
        }
        this.createman =  createman; 
        this.createmanDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[建立人]代码表：com.sa.litetwo.srv.codelist.SysOperatorCodeListModel
     */
    public String getCreateMan(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getCreateMan();
    	}
        return this.createman;
    }

    /**
     *  获取属性值[建立人]是否修改
     */
    public boolean isCreateManDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isCreateManDirty();
    	}
        return this.createmanDirtyFlag;
    }

    /**
     *  重置属性值[建立人]
     */
    public void resetCreateMan(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetCreateMan();
    		 return;
    	}
    	
        this.createmanDirtyFlag = false;
        this.createman = null;
    }
    /**
     *  设置属性值[更新时间]
     *  @param updatedate
     */
    public void setUpdateDate(Timestamp updatedate){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setUpdateDate(updatedate);
    		return;
    	}
        this.updatedate =  updatedate; 
        this.updatedateDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[更新时间]
     */
    public Timestamp getUpdateDate(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getUpdateDate();
    	}
        return this.updatedate;
    }

    /**
     *  获取属性值[更新时间]是否修改
     */
    public boolean isUpdateDateDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isUpdateDateDirty();
    	}
        return this.updatedateDirtyFlag;
    }

    /**
     *  重置属性值[更新时间]
     */
    public void resetUpdateDate(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetUpdateDate();
    		 return;
    	}
    	
        this.updatedateDirtyFlag = false;
        this.updatedate = null;
    }
    /**
     *  设置属性值[更新人]代码表：com.sa.litetwo.srv.codelist.SysOperatorCodeListModel
     *  @param updateman
     */
    public void setUpdateMan(String updateman){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setUpdateMan(updateman);
    		return;
    	}
        if(updateman!=null)
        {
        	updateman = StringHelper.trimRight(updateman);
        	if(updateman.length()==0){
        		updateman = null;
        	}
        }
        this.updateman =  updateman; 
        this.updatemanDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[更新人]代码表：com.sa.litetwo.srv.codelist.SysOperatorCodeListModel
     */
    public String getUpdateMan(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getUpdateMan();
    	}
        return this.updateman;
    }

    /**
     *  获取属性值[更新人]是否修改
     */
    public boolean isUpdateManDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isUpdateManDirty();
    	}
        return this.updatemanDirtyFlag;
    }

    /**
     *  重置属性值[更新人]
     */
    public void resetUpdateMan(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetUpdateMan();
    		 return;
    	}
    	
        this.updatemanDirtyFlag = false;
        this.updateman = null;
    }
    /**
     *  设置属性值[人员]
     *  @param cardid
     */
    public void setCARDID(String cardid){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setCARDID(cardid);
    		return;
    	}
        if(cardid!=null)
        {
        	cardid = StringHelper.trimRight(cardid);
        	if(cardid.length()==0){
        		cardid = null;
        	}
        }
        this.cardid =  cardid; 
        this.cardidDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[人员]
     */
    public String getCARDID(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getCARDID();
    	}
        return this.cardid;
    }

    /**
     *  获取属性值[人员]是否修改
     */
    public boolean isCARDIDDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isCARDIDDirty();
    	}
        return this.cardidDirtyFlag;
    }

    /**
     *  重置属性值[人员]
     */
    public void resetCARDID(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetCARDID();
    		 return;
    	}
    	
        this.cardidDirtyFlag = false;
        this.cardid = null;
    }
    /**
     *  设置属性值[时间]
     *  @param kssj
     */
    public void setKSSJ(Timestamp kssj){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setKSSJ(kssj);
    		return;
    	}
        this.kssj =  kssj; 
        this.kssjDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[时间]
     */
    public Timestamp getKSSJ(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getKSSJ();
    	}
        return this.kssj;
    }

    /**
     *  获取属性值[时间]是否修改
     */
    public boolean isKSSJDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isKSSJDirty();
    	}
        return this.kssjDirtyFlag;
    }

    /**
     *  重置属性值[时间]
     */
    public void resetKSSJ(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetKSSJ();
    		 return;
    	}
    	
        this.kssjDirtyFlag = false;
        this.kssj = null;
    }
    /**
     *  设置属性值[级别]
     *  @param jb
     */
    public void setJB(String jb){
    	
    	if(this.getProxyEntity()!=null){
    		this.getProxyEntity().setJB(jb);
    		return;
    	}
        if(jb!=null)
        {
        	jb = StringHelper.trimRight(jb);
        	if(jb.length()==0){
        		jb = null;
        	}
        }
        this.jb =  jb; 
        this.jbDirtyFlag  = true;
    }
    
    /**
     *  获取属性值[级别]
     */
    public String getJB(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().getJB();
    	}
        return this.jb;
    }

    /**
     *  获取属性值[级别]是否修改
     */
    public boolean isJBDirty(){
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().isJBDirty();
    	}
        return this.jbDirtyFlag;
    }

    /**
     *  重置属性值[级别]
     */
    public void resetJB(){
    	
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().resetJB();
    		 return;
    	}
    	
        this.jbDirtyFlag = false;
        this.jb = null;
    }

	/* (non-Javadoc)
	 * @see net.ibizsys.paas.entity.EntityBase#onReset()
	 */
    @Override
    protected void onReset()
    {
       GG_GRDHONOR.resetAll(this);
       super.onReset();
    }
    
    /**
     * 重置当前数据对象属性值
     * @param entity
     */
    private static void resetAll(GG_GRDHONOR et){
        et.resetGG_GRDHONORId();
        et.resetGG_GRDHONORName();
        et.resetCreateDate();
        et.resetCreateMan();
        et.resetUpdateDate();
        et.resetUpdateMan();
        et.resetCARDID();
        et.resetKSSJ();
        et.resetJB();
    }

     /* (non-Javadoc)
      * @see net.ibizsys.paas.entity.EntityBase#onFillMap(java.util.HashMap, boolean)
      */
    @Override
    protected void onFillMap(HashMap<String, Object> params, boolean bDirtyOnly)
    {
        if(!bDirtyOnly || isGG_GRDHONORIdDirty()){
             params.put(FIELD_GG_GRDHONORID,getGG_GRDHONORId());
        } 
        if(!bDirtyOnly || isGG_GRDHONORNameDirty()){
             params.put(FIELD_GG_GRDHONORNAME,getGG_GRDHONORName());
        } 
        if(!bDirtyOnly || isCreateDateDirty()){
             params.put(FIELD_CREATEDATE,getCreateDate());
        } 
        if(!bDirtyOnly || isCreateManDirty()){
             params.put(FIELD_CREATEMAN,getCreateMan());
        } 
        if(!bDirtyOnly || isUpdateDateDirty()){
             params.put(FIELD_UPDATEDATE,getUpdateDate());
        } 
        if(!bDirtyOnly || isUpdateManDirty()){
             params.put(FIELD_UPDATEMAN,getUpdateMan());
        } 
        if(!bDirtyOnly || isCARDIDDirty()){
             params.put(FIELD_CARDID,getCARDID());
        } 
        if(!bDirtyOnly || isKSSJDirty()){
             params.put(FIELD_KSSJ,getKSSJ());
        } 
        if(!bDirtyOnly || isJBDirty()){
             params.put(FIELD_JB,getJB());
        } 
    	super.onFillMap(params, bDirtyOnly);
    }
   
    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#get(java.lang.String)
     */
    @Override
	public Object get(String strParamName) throws Exception
	{
    	if(this.getProxyEntity()!=null){
    		return this.getProxyEntity().get(strParamName);
    	}
    	
            if(StringHelper.isNullOrEmpty(strParamName))
                 throw new Exception("没有指定属性");
            Integer index=fieldIndexMap.get(strParamName.toUpperCase());
            if(index==null)
                 return super.get(strParamName);

                return  GG_GRDHONOR.get(this, index);
	}
    
    /**
     * 通过属性标识获取属性值
     * @param et 数据对象
     * @param index 属性标识
     * @return
     * @throws Exception
     */
    private static Object get(GG_GRDHONOR et,int index) throws Exception{
             
            switch(index)
    	    {
               case INDEX_GG_GRDHONORID:return et.getGG_GRDHONORId();
               case INDEX_GG_GRDHONORNAME:return et.getGG_GRDHONORName();
               case INDEX_CREATEDATE:return et.getCreateDate();
               case INDEX_CREATEMAN:return et.getCreateMan();
               case INDEX_UPDATEDATE:return et.getUpdateDate();
               case INDEX_UPDATEMAN:return et.getUpdateMan();
               case INDEX_CARDID:return et.getCARDID();
               case INDEX_KSSJ:return et.getKSSJ();
               case INDEX_JB:return et.getJB();
    	       default:
    		     throw new Exception("不明属性标识");
    	    }
    }

    /* (non-Javadoc)
     * @see net.ibizsys.paas.data.DataObject#set(java.lang.String, java.lang.Object)
     */
    @Override
	public void set(String strParamName,Object objValue) throws Exception
	{
    	if(this.getProxyEntity()!=null){
    		 this.getProxyEntity().set(strParamName,objValue);
    		 return;
    	}
            if(StringHelper.isNullOrEmpty(strParamName))
                 throw new Exception("没有指定属性");

            Integer index=fieldIndexMap.get(strParamName.toUpperCase());
            if(index==null)
            {
                super.set(strParamName,objValue);
                return;
            }
            
            GG_GRDHONOR.set(this,index,objValue);
 	}

    /**
     * 通过属性标识设定属性值
     * @param et 数据对象
     * @param index 属性标识
     * @param obj 值
     * @throws Exception
     */
            private static void set(GG_GRDHONOR et,int index,Object obj) throws Exception
         {    
            switch(index)
    	    {
               case INDEX_GG_GRDHONORID:et.setGG_GRDHONORId(DataObject.getStringValue(obj));return ;
               case INDEX_GG_GRDHONORNAME:et.setGG_GRDHONORName(DataObject.getStringValue(obj));return ;
               case INDEX_CREATEDATE:et.setCreateDate(DataObject.getTimestampValue(obj));return ;
               case INDEX_CREATEMAN:et.setCreateMan(DataObject.getStringValue(obj));return ;
               case INDEX_UPDATEDATE:et.setUpdateDate(DataObject.getTimestampValue(obj));return ;
               case INDEX_UPDATEMAN:et.setUpdateMan(DataObject.getStringValue(obj));return ;
               case INDEX_CARDID:et.setCARDID(DataObject.getStringValue(obj));return ;
               case INDEX_KSSJ:et.setKSSJ(DataObject.getTimestampValue(obj));return ;
               case INDEX_JB:et.setJB(DataObject.getStringValue(obj));return ;
    	       default:
    		     throw new Exception("不明属性标识");
    	    }
        }

            /* (non-Javadoc)
             * @see net.ibizsys.paas.data.DataObject#isNull(java.lang.String)
             */
            @Override
    	public boolean isNull(String strParamName) throws Exception
    	{
			 if(this.getProxyEntity()!=null){
		 		return this.getProxyEntity().isNull(strParamName);
		 	}
            if(StringHelper.isNullOrEmpty(strParamName))
                 throw new Exception("没有指定属性");

    	    Integer index=fieldIndexMap.get(strParamName.toUpperCase());
            if(index==null)
                 return super.isNull(strParamName);

    	     return  GG_GRDHONOR.isNull(this, index);
    	}

            /**
             * 判断指定属性值是否为空值
             * @param et
             * @param index
             * @return
             * @throws Exception
             */
         private static boolean isNull(GG_GRDHONOR et,int index) throws Exception{
             
            switch(index)
    	    {
               case INDEX_GG_GRDHONORID:return et.getGG_GRDHONORId()==null;
               case INDEX_GG_GRDHONORNAME:return et.getGG_GRDHONORName()==null;
               case INDEX_CREATEDATE:return et.getCreateDate()==null;
               case INDEX_CREATEMAN:return et.getCreateMan()==null;
               case INDEX_UPDATEDATE:return et.getUpdateDate()==null;
               case INDEX_UPDATEMAN:return et.getUpdateMan()==null;
               case INDEX_CARDID:return et.getCARDID()==null;
               case INDEX_KSSJ:return et.getKSSJ()==null;
               case INDEX_JB:return et.getJB()==null;
    	       default:
    		     throw new Exception("不明属性标识");
    	    }
    }

    
         /* (non-Javadoc)
          * @see net.ibizsys.paas.data.DataObject#contains(java.lang.String)
          */
         @Override
    	public boolean contains(String strParamName) throws Exception
    	{
    	 	if(this.getProxyEntity()!=null){
		 		return this.getProxyEntity().contains(strParamName);
		 	}
    	 
            if(StringHelper.isNullOrEmpty(strParamName))
                 throw new Exception("没有指定属性");
    	    Integer index=fieldIndexMap.get(strParamName.toUpperCase());
            if(index==null)
                 return super.contains(strParamName);

    	    return  GG_GRDHONOR.contains(this, index);
    	}

    /**
     * 获取判断对象是否存在指定属性值
     * @param et
     * @param index
     * @return
     * @throws Exception
     */
         private static boolean contains(GG_GRDHONOR et,int index) throws Exception{
             
            switch(index)
    	    {
               case INDEX_GG_GRDHONORID:return et.isGG_GRDHONORIdDirty();
               case INDEX_GG_GRDHONORNAME:return et.isGG_GRDHONORNameDirty();
               case INDEX_CREATEDATE:return et.isCreateDateDirty();
               case INDEX_CREATEMAN:return et.isCreateManDirty();
               case INDEX_UPDATEDATE:return et.isUpdateDateDirty();
               case INDEX_UPDATEMAN:return et.isUpdateManDirty();
               case INDEX_CARDID:return et.isCARDIDDirty();
               case INDEX_KSSJ:return et.isKSSJDirty();
               case INDEX_JB:return et.isJBDirty();
    	       default:
    		     throw new Exception("不明属性标识");
    	    }
    }

         /* (non-Javadoc)
          * @see net.ibizsys.paas.data.DataObject#onFillJSONObject(net.sf.json.JSONObject, boolean)
          */
    @Override
      protected void onFillJSONObject(JSONObject objJSON, boolean bIncludeEmpty) throws Exception
      {
          fillJSONObject(this,objJSON,bIncludeEmpty);
          super.onFillJSONObject(objJSON, bIncludeEmpty);
       }
        
    /**
     * 填充当前对象到JSON
     * @param et 当前数据对象
     * @param json JSON对象
     * @param bIncEmpty 是否包括空值
     * @throws Exception
     */
        private static  void fillJSONObject(GG_GRDHONOR et,JSONObject json, boolean bIncEmpty) throws Exception
        {
                if(bIncEmpty||et.getGG_GRDHONORId()!=null)
        	{
                	JSONObjectHelper.put(json,"gg_grdhonorid",getJSONValue(et.getGG_GRDHONORId()),false);
        	}
                if(bIncEmpty||et.getGG_GRDHONORName()!=null)
        	{
                	JSONObjectHelper.put(json,"gg_grdhonorname",getJSONValue(et.getGG_GRDHONORName()),false);
        	}
                if(bIncEmpty||et.getCreateDate()!=null)
        	{
                	JSONObjectHelper.put(json,"createdate",getJSONValue(et.getCreateDate()),false);
        	}
                if(bIncEmpty||et.getCreateMan()!=null)
        	{
                	JSONObjectHelper.put(json,"createman",getJSONValue(et.getCreateMan()),false);
        	}
                if(bIncEmpty||et.getUpdateDate()!=null)
        	{
                	JSONObjectHelper.put(json,"updatedate",getJSONValue(et.getUpdateDate()),false);
        	}
                if(bIncEmpty||et.getUpdateMan()!=null)
        	{
                	JSONObjectHelper.put(json,"updateman",getJSONValue(et.getUpdateMan()),false);
        	}
                if(bIncEmpty||et.getCARDID()!=null)
        	{
                	JSONObjectHelper.put(json,"cardid",getJSONValue(et.getCARDID()),false);
        	}
                if(bIncEmpty||et.getKSSJ()!=null)
        	{
                	JSONObjectHelper.put(json,"kssj",getJSONValue(et.getKSSJ()),false);
        	}
                if(bIncEmpty||et.getJB()!=null)
        	{
                	JSONObjectHelper.put(json,"jb",getJSONValue(et.getJB()),false);
        	}
        }

        /* (non-Javadoc)
         * @see net.ibizsys.paas.data.DataObject#onFillXmlNode(net.ibizsys.paas.xml.XmlNode, boolean)
         */
     @Override
      protected void onFillXmlNode(XmlNode xmlNode,boolean bIncludeEmpty) throws Exception
      {
           fillXmlNode(this,xmlNode,bIncludeEmpty);
           super.onFillXmlNode(xmlNode, bIncludeEmpty);
       }
        
     /**
      * 填充当前对象到Xml节点中
      * @param et 当前数据对象
      * @param node Xml节点
      * @param bIncEmpty 是否包括空值
      * @throws Exception
      */
        private static void fillXmlNode(GG_GRDHONOR et,XmlNode node,boolean bIncEmpty) throws Exception
        {
                if(bIncEmpty||et.getGG_GRDHONORId()!=null)
        	{
                    Object obj = et.getGG_GRDHONORId();
                    node.setAttribute("GG_GRDHONORID",(obj==null)?"":(String)obj);
         	}
                if(bIncEmpty||et.getGG_GRDHONORName()!=null)
        	{
                    Object obj = et.getGG_GRDHONORName();
                    node.setAttribute("GG_GRDHONORNAME",(obj==null)?"":(String)obj);
         	}
                if(bIncEmpty||et.getCreateDate()!=null)
        	{
                    Object obj = et.getCreateDate();
                    node.setAttribute("CREATEDATE",(obj==null)?"":StringHelper.format("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS",obj));
         	}
                if(bIncEmpty||et.getCreateMan()!=null)
        	{
                    Object obj = et.getCreateMan();
                    node.setAttribute("CREATEMAN",(obj==null)?"":(String)obj);
         	}
                if(bIncEmpty||et.getUpdateDate()!=null)
        	{
                    Object obj = et.getUpdateDate();
                    node.setAttribute("UPDATEDATE",(obj==null)?"":StringHelper.format("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS",obj));
         	}
                if(bIncEmpty||et.getUpdateMan()!=null)
        	{
                    Object obj = et.getUpdateMan();
                    node.setAttribute("UPDATEMAN",(obj==null)?"":(String)obj);
         	}
                if(bIncEmpty||et.getCARDID()!=null)
        	{
                    Object obj = et.getCARDID();
                    node.setAttribute("CARDID",(obj==null)?"":(String)obj);
         	}
                if(bIncEmpty||et.getKSSJ()!=null)
        	{
                    Object obj = et.getKSSJ();
                    node.setAttribute("KSSJ",(obj==null)?"":StringHelper.format("%1$tY-%1$tm-%1$td",obj));
         	}
                if(bIncEmpty||et.getJB()!=null)
        	{
                    Object obj = et.getJB();
                    node.setAttribute("JB",(obj==null)?"":(String)obj);
         	}


        }

        /* (non-Javadoc)
         * @see net.ibizsys.paas.entity.EntityBase#onCopyTo(net.ibizsys.paas.data.IDataObject, boolean)
         */
	    @Override
	   	protected void onCopyTo(IDataObject dataEntity, boolean bIncludeEmtpy) throws Exception
	  	{
	          GG_GRDHONOR.copyTo(this,dataEntity,bIncludeEmtpy);
	          super.onCopyTo(dataEntity,bIncludeEmtpy);
	  	}
        
	    /**
         * 复制当前对象数据到目标对象
         * @param et 当前数据对象
         * @param dst 目标数据对象
         * @param bIncEmpty 是否包括空值
         * @throws Exception
         */
        private static void copyTo(GG_GRDHONOR et,IDataObject dst,boolean bIncEmpty) throws Exception
        {
            if(et.isGG_GRDHONORIdDirty() && (bIncEmpty||et.getGG_GRDHONORId()!=null))
        	{
        		dst.set(FIELD_GG_GRDHONORID,et.getGG_GRDHONORId());
         	}
            if(et.isGG_GRDHONORNameDirty() && (bIncEmpty||et.getGG_GRDHONORName()!=null))
        	{
        		dst.set(FIELD_GG_GRDHONORNAME,et.getGG_GRDHONORName());
         	}
            if(et.isCreateDateDirty() && (bIncEmpty||et.getCreateDate()!=null))
        	{
        		dst.set(FIELD_CREATEDATE,et.getCreateDate());
         	}
            if(et.isCreateManDirty() && (bIncEmpty||et.getCreateMan()!=null))
        	{
        		dst.set(FIELD_CREATEMAN,et.getCreateMan());
         	}
            if(et.isUpdateDateDirty() && (bIncEmpty||et.getUpdateDate()!=null))
        	{
        		dst.set(FIELD_UPDATEDATE,et.getUpdateDate());
         	}
            if(et.isUpdateManDirty() && (bIncEmpty||et.getUpdateMan()!=null))
        	{
        		dst.set(FIELD_UPDATEMAN,et.getUpdateMan());
         	}
            if(et.isCARDIDDirty() && (bIncEmpty||et.getCARDID()!=null))
        	{
        		dst.set(FIELD_CARDID,et.getCARDID());
         	}
            if(et.isKSSJDirty() && (bIncEmpty||et.getKSSJ()!=null))
        	{
        		dst.set(FIELD_KSSJ,et.getKSSJ());
         	}
            if(et.isJBDirty() && (bIncEmpty||et.getJB()!=null))
        	{
        		dst.set(FIELD_JB,et.getJB());
         	}
        }
        
        /* (non-Javadoc)
         * @see net.ibizsys.paas.data.DataObject#remove(java.lang.String)
         */
        @Override
    	public boolean remove(String strParamName) throws Exception
    	{
        	if(this.getProxyEntity()!=null){
		 		return this.getProxyEntity().remove(strParamName);
		 	}
        	
            if(StringHelper.isNullOrEmpty(strParamName))
                 throw new Exception("没有指定属性");
            Integer index=fieldIndexMap.get(strParamName.toUpperCase());
            if(index==null)
                 return super.remove(strParamName);
            return  GG_GRDHONOR.remove(this, index);
    	}
        
        /**
         * 通过属性标识删除属性值
         * @param entity
         * @param index
         * @return
         * @throws Exception
         */
        private static boolean remove(GG_GRDHONOR et,int index) throws Exception
        {
        	switch(index)
        	{
				case INDEX_GG_GRDHONORID: et.resetGG_GRDHONORId();return true;
				case INDEX_GG_GRDHONORNAME: et.resetGG_GRDHONORName();return true;
				case INDEX_CREATEDATE: et.resetCreateDate();return true;
				case INDEX_CREATEMAN: et.resetCreateMan();return true;
				case INDEX_UPDATEDATE: et.resetUpdateDate();return true;
				case INDEX_UPDATEMAN: et.resetUpdateMan();return true;
				case INDEX_CARDID: et.resetCARDID();return true;
				case INDEX_KSSJ: et.resetKSSJ();return true;
				case INDEX_JB: et.resetJB();return true;
				default: throw new Exception("不明属性标识");
			}
        }


     private Object objCARDLock = new Object();
     private com.sa.litetwo.srv.card.entity.GG_CARD card = null;
     /**
     * 获取父数据 简历信息卡
      * @throws Exception
     */
    public com.sa.litetwo.srv.card.entity.GG_CARD getCARD() throws Exception
    {
    	if(this.getProxyEntity()!=null){
	 		return this.getProxyEntity().getCARD();
	 	}
    	
        if(this.getCARDID()==null)
             return null;
        synchronized(objCARDLock)
        {
        	if(card==null)
        	{
        		card = new com.sa.litetwo.srv.card.entity.GG_CARD();
        		card.setGG_CARDId(this.getCARDID());
     	        com.sa.litetwo.srv.card.service.GG_CARDService service = (com.sa.litetwo.srv.card.service.GG_CARDService)ServiceGlobal.getService(com.sa.litetwo.srv.card.service.GG_CARDService.class,this.getSessionFactory()); 
     	          if(this.getCARDID().indexOf(net.ibizsys.paas.service.ServiceBase.TEMPKEY) == 0)
     	             service.getTemp(card);
     	        else
     	            service.get(card);
        	}
	        return card;
        }
    }





	/**
	 *  获取代理的数据对象
	 */
	private GG_GRDHONOR getProxyEntity(){return this.proxyGG_GRDHONOR;}

	/* (non-Javadoc)
	 * @see net.ibizsys.paas.data.DataObject#onProxy(net.ibizsys.paas.data.IDataObject)
	 */
	@Override
	protected void onProxy(IDataObject proxyDataObject)
	{
		this.proxyGG_GRDHONOR = null;
		if(proxyDataObject!=null && proxyDataObject instanceof GG_GRDHONOR){
			this.proxyGG_GRDHONOR = (GG_GRDHONOR)proxyDataObject;
		}
			
	}

}